package com.yonglian.management.domain;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

public class ActivityPropertyTestSamples {

    private static final Random random = new Random();
    private static final AtomicLong longCount = new AtomicLong(random.nextInt() + (2 * Integer.MAX_VALUE));
    private static final AtomicInteger intCount = new AtomicInteger(random.nextInt() + (2 * Short.MAX_VALUE));

    public static ActivityProperty getActivityPropertySample1() {
        return new ActivityProperty()
            .id(1L)
            .propertyName("propertyName1")
            .propertyValue("propertyValue1")
            .propertyRemark("propertyRemark1")
            .orderNo(1);
    }

    public static ActivityProperty getActivityPropertySample2() {
        return new ActivityProperty()
            .id(2L)
            .propertyName("propertyName2")
            .propertyValue("propertyValue2")
            .propertyRemark("propertyRemark2")
            .orderNo(2);
    }

    public static ActivityProperty getActivityPropertyRandomSampleGenerator() {
        return new ActivityProperty()
            .id(longCount.incrementAndGet())
            .propertyName(UUID.randomUUID().toString())
            .propertyValue(UUID.randomUUID().toString())
            .propertyRemark(UUID.randomUUID().toString())
            .orderNo(intCount.incrementAndGet());
    }
}
